home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 4 / Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso / Pearls / midi / misc / Midi2TeX / src / tp_midi.h < prev    next >
C/C++ Source or Header  |  1994-03-30  |  1KB  |  53 lines

  1. /* Header for module TP_MIDI, generated by p2c */
  2.  
  3. #ifndef TP_MIDI_H
  4. #define TP_MIDI_H
  5.  
  6. #ifndef TP_DECL_H
  7. #include "tp_decl.h"
  8. #endif
  9.  
  10. #ifndef TP_MISC_H
  11. #include "tp_misc.h"
  12. #endif
  13. #ifndef TP_DEBUG_H
  14. #include "tp_debug.h"
  15. #endif
  16.  
  17. #ifndef TP_HEAP1_H
  18. #include "tp_heap1.h"
  19. #endif
  20. #ifndef TP_M2TF4_H
  21. #include "tp_m2tf4.h"
  22. #endif
  23.  
  24. #ifdef TP_MIDI_G
  25. # define vextern
  26. #else
  27. # define vextern extern
  28. #endif
  29.  
  30.  
  31. Void InsertRest (TrackRecord *ThisTrack);
  32. Void ReadMetaEvent (TrackRecord *ThisTrack);
  33. boolean EndOfTrackReached (TrackRecord *ThisTrack);
  34. Void WriteTexHeader(void);
  35. Char *GetPortees (Char *Result);
  36. Char *StaffIndex (Char *Result,int No);
  37. Void Quantize (NoteRecord **N);
  38. Void ReadDeltaTime (TrackRecord *ThisTrack);
  39. Void ReadEvent (TrackRecord *ThisTrack);
  40. Void ChangeContext (NoteRecord *N);
  41. /* newly added */
  42. long FindStaff(long ThisTrack);
  43. Char *FindClefStaff(char *Result,long ThisTrack);
  44. static Void FinishTeXHeader(unsigned int num, unsigned int den);
  45. static Void ReadNoteOn(unsigned int MidCode,TrackRecord *ThisTrack);
  46. static Void ReadNoteOff(unsigned int MidCode,TrackRecord *ThisTrack);
  47. static Void ReadMetaText(int Len,TrackRecord *ThisTrack);
  48. void _TP_MIDI_init(void);
  49. #undef vextern
  50. #endif /*TP_MIDI_H*/
  51. /* End. */
  52.  
  53.